<script type="text/javascript">
	function controle_choix(i){
  	if (i == "Tout"){
    	if (document.modArchives.Tout.checked == true){
      	document.modArchives.Royaume.checked = true;
        document.modArchives.Raisonsearch.checked = true;
        document.modArchives.Idsearch.checked = true;
			}
    }else{
    	if (i == false){
      	document.modArchives.Tout.checked = false;
      }
		  if ((i == true) && (document.modArchives.Royaume.checked == true) && (document.modArchives.Idsearch.checked == true) && (document.modArchives.Raisonsearch.checked == true)){
	        document.modArchives.Tout.checked = true;
		  }
    }
  }
</script>
<form action="./?page=archives" method="post" name="modArchives">
<table class="centre">
	<tr>
		<td>
			<input type="text" name="recherche" value="<?php echo $_POST['recherche']; ?>">&nbsp;<input type="checkbox" name="Tout" onclick="controle_choix('Tout')" value="1" /><b>Tout</b>
		</td>
	</tr>
	<tr>
		<td>
			<input type="checkbox" name="Royaume" onclick="controle_choix(this.checked)" value="1" checked="checked" />Royaume
			<input type="checkbox" name="Idsearch" onclick="controle_choix(this.checked)" value="1" />Identifiant
			<input type="checkbox" name="Raisonsearch" onclick="controle_choix(this.checked)" value="1" />Raison
		</td>
	</tr>
	<tr>
		<td>
			<input class="bouton" type="submit" value="Rechercher" />
		</td>
	</tr>
</table>
<a class="bouton" href="./?page=archives&special=listID">Liste de tous les Royaumes</a>
</form>